
import { axios } from '@/utils/request'

// 收支明细列表
export function incomeExpenses(params) {
    return axios({
        url: '/school/income-expenses',
        method: 'post',
        data: params
    })
}
// 添加收支明细
export function incomeExpensesAdd(params) {
    return axios({
        url: '/school/income-expenses/create',
        method: 'post',
        data: params
    })
}

//编辑收支明细
export function incomeExpensesEdit(id,params) {
    return axios({
        url: `/school/income-expenses/${id}/update`,
        method: 'post',
        data: params
    })
}
//删除收支明细
export function incomeExpensesDel(id,params) {
    return axios({
        url: `/school/income-expenses/${id}/delete`,
        method: 'post',
        data: params
    })
}


//收支统计
export function incomeExpensesPrice(params) {
    return axios({
        url: `/school/income-expenses/statistics`,
        method: 'post',
        data: params
    })
}


//导出收支
export function incomeExport(params) {
    return axios({
        url: `/school/income-expenses/export`,
        method: 'GET',
        params: params
    })
}

//编辑备注
export function editRemark(id,params) {
    return axios({
        url: `school/income-expenses/${id}/edit-remark`,
        method: 'post',
        data: params
    })
}












//收支项目列表
export function expenseProjects(params) {
    return axios({
        url: '/school/income-expense-projects',
        method: 'post',
        data: params
    })
}

//添加收支项目
export function expenseProjectsAdd(params) {
    return axios({
        url: '/school/income-expense-projects/create',
        method: 'post',
        data: params
    })
}

//删除收支项目
export function expenseProjectsDel(id,params) {
    return axios({
        url: `/school/income-expense-projects/${id}/delete`,
        method: 'post',
        data: params
    })
}

//编辑收支项目状态
export function expenseProjectsStatus(id,params) {
    return axios({
        url: `/school/income-expense-projects/${id}/enable-status`,
        method: 'post',
        data: params
    })
}

//编辑收支项目
export function expenseProjectsEdit(id,params) {
    return axios({
        url: `school/income-expense-projects/${id}/update`,
        method: 'post',
        data: params
    })
}













//收支账户列表
export function expenseAccounts(params) {
    return axios({
        url: '/school/income-expense-accounts',
        method: 'post',
        data: params
    })
}

//添加收支账户
export function expenseAccountsAdd(params) {
    return axios({
        url: '/school/income-expense-accounts/create',
        method: 'post',
        data: params
    })
}

//删除收支账户
export function expenseAccountsDel(id,params) {
    return axios({
        url: `/school/income-expense-accounts/${id}/delete`,
        method: 'post',
        data: params
    })
}


//编辑收支账户
export function expenseAccountsEdit(id,params) {
    return axios({
        url: `school/income-expense-accounts/${id}/update`,
        method: 'post',
        data: params
    })
}